/* eslint-disable eol-last */
import request from '@/utils/request'

// 登录接口封装
export function login(data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}

export function getUserInfo(token) {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}

// 这个接口专门用来获取用户头像
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'GET'
  })
}

export function logout() {

}